package com.zrrd.learn.chapter08面向对象.story;

/**
 * 三个产品
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/25 8:25
 */

public class DemoProduct {

    public static void main(String[] args) {
        ProType pt1 = new ProType("食品","可以吃哦");
        ProBrand pb1 = new ProBrand("农夫山泉","山","喝开水");
        Commodity c1 = new Commodity();
        c1.setBar("111");
        c1.setName("方便面");
        c1.setPrice(7);
        c1.setBrand(pb1);
        c1.setSort(pt1);
        c1.setProducer("北京");
        Commodity c2 = new Commodity("222", "水");
        Commodity c3 = new Commodity("333", "水", 2, pb1, pt1, "吉林");
        Commodity c4 = new Commodity("222222", "武若楠");


    }
}
